package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品信息 ：与店铺关联对象 tb_product
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
public class TbProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID，主键 */
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String productPhoto;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String productDetail;

    /** 类别ID */
    @Excel(name = "类别ID")
    private Long categoryId;

//    /** 规格ID */
//    @Excel(name = "规格ID")
//    private Long specificationId;

    /** 销量 */
    @Excel(name = "销量")
    private Long saleNum;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 是否折扣，0表示无折扣，1表示有折扣 */
    @Excel(name = "是否折扣，0表示无折扣，1表示有折扣")
    private String isDiscount;

    /** 上下架状态，0表示下架,1表示上架 */
    @Excel(name = "上下架状态，0表示下架,1表示上架")
    private String isOnSale;

    /** 折扣力度（xx折，比如：95折） */
    @Excel(name = "折扣力度", readConverterExp = "x=x折，比如：95折")
    private Long discontStrength;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long storeId;

    @Excel(name = "商家id")
    private Long merchantId;

    /** 类别（可视化） */
    @Excel(name = "类别")
    private String categoryName;

    /** 大份价格 */
    @Excel(name = "大份价格")
    private Double max_price;

    /** 小份价格 */
    @Excel(name = "小份价格")
    private Double min_price;

    /** 库名 */
    @Excel(name = "小份价格")
    private String databaseName;

    /** 小份价格 */
    @Excel(name = "小份价格")
    private String tableName;


    public String getDatabaseName() {
        return databaseName;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    public String getTableName() {
        return tableName;
    }



    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductPhoto(String productPhoto) 
    {
        this.productPhoto = productPhoto;
    }

    public Double getPrice() {
        return price;
    }

    public String getCategoryName() {
        return categoryName;
    }


    public Double getMax_price() {
        return max_price;
    }

    public void setMax_price(Double max_price) {
        this.max_price = max_price;
    }

    public Double getMin_price() {
        return min_price;
    }

    public void setMin_price(Double min_price) {
        this.min_price = min_price;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getProductPhoto()
    {
        return productPhoto;
    }
    public void setProductDetail(String productDetail) 
    {
        this.productDetail = productDetail;
    }

    public String getProductDetail() 
    {
        return productDetail;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
//    public void setSpecificationId(Long specificationId)
//    {
//        this.specificationId = specificationId;
//    }
//
//    public Long getSpecificationId()
//    {
//        return specificationId;
//    }
    public void setSaleNum(Long saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() 
    {
        return saleNum;
    }
    public void setIsDiscount(String isDiscount) 
    {
        this.isDiscount = isDiscount;
    }

    public String getIsDiscount() 
    {
        return isDiscount;
    }
    public void setIsOnSale(String isOnSale) 
    {
        this.isOnSale = isOnSale;
    }

    public String getIsOnSale() 
    {
        return isOnSale;
    }
    public void setDiscontStrength(Long discontStrength) 
    {
        this.discontStrength = discontStrength;
    }

    public Long getDiscontStrength() 
    {
        return discontStrength;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }


    @Override
    public String toString() {
        return "TbProduct{" +
                "productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productPhoto='" + productPhoto + '\'' +
                ", productDetail='" + productDetail + '\'' +
                ", categoryId=" + categoryId +
//                ", specificationId=" + specificationId +
                ", saleNum=" + saleNum +
                ", price=" + price +
                ", isDiscount='" + isDiscount + '\'' +
                ", isOnSale='" + isOnSale + '\'' +
                ", discontStrength=" + discontStrength +
                ", storeId=" + storeId +
                ", categoryName='" + categoryName + '\'' +
                ", max_price=" + max_price +
                ", min_price=" + min_price +
                ", merchantId=" + merchantId +
                ", databaseName=" + databaseName +
                ", tableName=" + tableName +
                '}';
    }
}
